import java.io.UnsupportedEncodingException;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

/**
 * ${DESCRIPTION}
 *
 * @author liuyj
 * @create 2017-07-06 16:45
 **/
public class test {





    public void A() throws NoSuchAlgorithmException, UnsupportedEncodingException {
        List testList = new ArrayList();
        Collections.synchronizedList(testList);

        String aaa = "aad";

        MessageDigest md = MessageDigest.getInstance("MD5");
        String aa = "lyj";
        byte [] byteMds = aa.getBytes("utf-8");
        byte [] byteDigest = md.digest(byteMds);

    }


    public static void main(String[] args) {
//        Arrays.asList( "a", "b", "d" ).forEach( e -> System.out.println( e ) );


        String hello = "hello";
        String hel = "hel";
        String lo = "lo";
        System.out.println(hello == "hel" + "lo");
        System.out.println(hello == "hel" + lo);

    }
}
